package com.financial.service.yspay.mq;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * describe:
 *
 * @author zhaopengjun
 * @date 2019/5/17 16:22
 */
@Component
public class FinancialYsPayReturnMQConfig {

    public static String YS_TOPIC;
    public static String YS_GROUPID;
    public static String BALANCE_TOPIC;
    public static String INTEGTAL_TOPIC;
    public static final String ACCESS_KEY = "LTAIkLoCSLqX7QFG";
    public static final String SECRET_KEY = "anr8xwxEFrN4Rq0Gjw5MXxELuDb12V";
    public static final String NAMESRV_ADDR = "http://onsaddr.mq-internet-access.mq-internet.aliyuncs.com:80";


    @Value("${RocketMQ_Key.Balance.Topic}")
    public void setBalanceTopic(String balanceTopic) {
        BALANCE_TOPIC = balanceTopic;
    }

    @Value("${RocketMQ_Key.Integral.Topic}")
    public void setIntegtalTopic(String integtalTopic) {
        INTEGTAL_TOPIC = integtalTopic;
    }

    @Value("${RocketMQ_Key.YS.Topic}")
    private void setYsTopic(String ysTopic) {
        FinancialYsPayReturnMQConfig.YS_TOPIC = ysTopic;
    }

    @Value("${RocketMQ_Key.YS.GroupId}")
    private void setYsGroupId(String groupId) {
        FinancialYsPayReturnMQConfig.YS_GROUPID = groupId;
    }

    //银盛代付通知余额支付平台
    public static final String BLANCEPAY = "BLANCEPAY";

    //银盛代付通知积分支付平台
    public static final String INTEGRAL = "INTEGRAL";

    /**
     * 银盛微信支付tag----WANGNING
     */
    public static final String YS_SERVICE_WECHATPAY_TAG = "WECHATPAY";

    /**
     * 银盛支付宝支付tag
     */
    public static final String YS_SERVICE_ALIPAY_TAG="ALIPAY";

    /**
     * 银盛分账tag
     */
    public static final String YS_SERVICE_SPLIT_TAG="SPLITTAG";

    /**
     * 银盛提现tag
     */
    public static final String YS_SERVICE_WITHDRAWAL_TAG="WITHDRAWALTAG";

    /**
     * 银盛代付tag
     */
    public static final String YS_SERVICE_PAYMENT_TAG="PAYMENTTAG";

    public static final String TAG_ALL = "*";

}
